package com.ns.basic.server.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * 服务模块 数据实体类
 *
 * @author: lw
 * @since: 2024/10/16 12:56
 */
@Data
@ToString
@Accessors(chain = true)
@TableName(value = "KERNEL_SERVER_MENU")
public class ServerMenuEntry implements Serializable {

    @Serial
    private static final Long serialVersionUID = 1L;
    /**
     * 此模块对应的表名
     */
    public static final String TABLE_NAME = "KERNEL_SERVER_MENU";
    /**
     * id，--主键、自增
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 服务id
     */
    private Long sid;

    /**
     * 一级菜单id
     */
    private Long one;

    /**
     * 二级菜单id
     */
    private Long two;
    /**
     * 三级菜单id
     */
    private Long three;
    /**
     * 四级菜单id
     */
    private Long four;
}
